package com.lineage.server.serverpackets;

import com.lineage.server.model.L1Character;

public class S_ChangeHeading extends ServerBasePacket {
  private byte[] _byte;
  
  public S_ChangeHeading(L1Character cha) {
    this._byte = null;
    buildPacket(cha);
  }
  
  private void buildPacket(L1Character cha) {
    writeC(122);
    writeD(cha.getId());
    writeC(cha.getHeading());
  }
  
  public byte[] getContent() {
    if (this._byte == null)
      this._byte = getBytes(); 
    return this._byte;
  }
  
  public String getType() {
    return getClass().getSimpleName();
  }
}
